package com.example.wechat.model;

public class Conversation {
    private String id;
    private String name;
    private String lastMessage;
    private long timestamp;
    private String avatarUrl;
    private int unreadCount;
    private String contactId;
    private String contactName;

    public Conversation(String id, String name, String lastMessage, long timestamp) {
        this(id, name, lastMessage, timestamp, null, 0);
    }

    public Conversation(String id, String name, String lastMessage, long timestamp, String avatarUrl, int unreadCount) {
        this.id = id;
        this.name = name;
        this.lastMessage = lastMessage;
        this.timestamp = timestamp;
        this.avatarUrl = avatarUrl;
        this.unreadCount = unreadCount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLastMessage() {
        return lastMessage;
    }

    public void setLastMessage(String lastMessage) {
        this.lastMessage = lastMessage;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public int getUnreadCount() {
        return unreadCount;
    }

    public void setUnreadCount(int unreadCount) {
        this.unreadCount = unreadCount;
    }

    public String getContactId() {
        return contactId;
    }

    public String getContactName() {
        return contactName;
    }
} 